package com.steamedfish.auctioncloudprocess.feign.client;

import com.steamedfish.auctioncloudprocess.model.AuctionItemModel;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

@Service
@FeignClient(value = "auction-item-server")
public interface AuctionItemClient {

    @RequestMapping(value = "/auctionitemserver/service/auctionItem/get", method = RequestMethod.GET)
    public AuctionItemModel getAuctionItemModel(@RequestParam(value = "id") String id);

}